﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SFightAttributeAddPercent extends IMessageBase
    {
        public var attackAdd:int;
        public var maxLifeAdd:int;
        public var maxManaAdd:int;
        public var physDefenseAdd:int;
        public var magicDefenseAdd:int;
        public var penetrationAdd:int;
        public var joukAdd:int;
        public var hitAdd:int;
        public var critAdd:int;
        public var toughnessAdd:int;
        public var blockAdd:int;
        public var expertiseAdd:int;
        public var damageReduceAdd:int;
        public var damageDeeperAdd:int;
        public var speedAdd:int;
        public const _type:int = 3023;
        public static var _regist:SFightAttributeAddPercent = new SFightAttributeAddPercent(true);

        public function SFightAttributeAddPercent(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SFightAttributeAddPercent();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.attackAdd);
            param1.writeInt(this.maxLifeAdd);
            param1.writeInt(this.maxManaAdd);
            param1.writeInt(this.physDefenseAdd);
            param1.writeInt(this.magicDefenseAdd);
            param1.writeInt(this.penetrationAdd);
            param1.writeInt(this.joukAdd);
            param1.writeInt(this.hitAdd);
            param1.writeInt(this.critAdd);
            param1.writeInt(this.toughnessAdd);
            param1.writeInt(this.blockAdd);
            param1.writeInt(this.expertiseAdd);
            param1.writeInt(this.damageReduceAdd);
            param1.writeInt(this.damageDeeperAdd);
            param1.writeInt(this.speedAdd);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.attackAdd = param1.readInt();
            this.maxLifeAdd = param1.readInt();
            this.maxManaAdd = param1.readInt();
            this.physDefenseAdd = param1.readInt();
            this.magicDefenseAdd = param1.readInt();
            this.penetrationAdd = param1.readInt();
            this.joukAdd = param1.readInt();
            this.hitAdd = param1.readInt();
            this.critAdd = param1.readInt();
            this.toughnessAdd = param1.readInt();
            this.blockAdd = param1.readInt();
            this.expertiseAdd = param1.readInt();
            this.damageReduceAdd = param1.readInt();
            this.damageDeeperAdd = param1.readInt();
            this.speedAdd = param1.readInt();
            return;
        }// end function

    }
}
